/*
 * 文件名：SecurityController.java
 * 版权：Copyright by www.nd.com
 * 描述：
 * 修改人：Administrator
 * 修改时间：2016年10月20日
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
 */

package com.wmzdq.framework.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import com.wmzdq.framework.annotation.SystemControllerLog;
import com.wmzdq.framework.constant.Constants;

@Controller
public class SecurityController extends BaseController
{
    @RequestMapping(value="/login",method=RequestMethod.GET)
    @SystemControllerLog(description="")
    public String login(HttpServletRequest request){
       // request.getSession().removeAttribute(Constants.USER_SESSION);
        //ModelAndView view=new ModelAndView("/system/login");
        return "/system/login";
    }
    
    @RequestMapping(value="/index",method=RequestMethod.GET)
    public ModelAndView index(){
        ModelAndView view=new ModelAndView("/system/index");
        return view;
    }
    
    

}
